package fgame.controller.state
{
	import fgame.controller.Controller;
	import fgame.graphic.Graphic;
	import fgame.unit.Actor3D;
	
	import flare.core.Label3D;
	import flare.core.Pivot3D;
	
	import ricky.utils.TimeServer;
	
	public class JumpState extends State
	{
		public function JumpState(controller:Controller=null)
		{
			super(controller);
		}
		
		override public function begin():void
		{
			var actor:Actor3D=controller.target;
			var n:String=actor.name;
			var graphic:Graphic=actor.graphic as Graphic;
			var arg:Object=new Object();
			arg["pos"]={"x":graphic.x,"y":graphic.y,"z":graphic.z};
			arg["jumpValue"]=8;
			arg["rotation"]=graphic.getRotation();
			
			MsgHelper.sendActMsg(n,2,arg);
//			Debug.traceMe(arg,"广播jump"+n);

		}


	}
}